/*
 * @(#)GenericCompoundMetaObject.java	1.0 2000/12/28
 *
 * Copyright 2000 Thomas Barnekow. All Rights Reserved.
 *
 * This software is the proprietary information of Thomas Barnekow.
 * Use is subject to license terms.
 */

package tb.provider;

import java.util.*;

/**
 * A generic container.
 *
 * @author Thomas Barnekow
 * @version 1.0
 */
public class GenericCompoundMetaObject extends AbstractCompoundMetaObject {

  /**
   * Create a top-level (uncontained) {@link CompoundMetaObject}.
   */
  public GenericCompoundMetaObject(Comparable id) {
    super(id);
  }

  /**
   * Create a {@link CompoundMetaObject} contained in the given <code>container</code>.
   */
  public GenericCompoundMetaObject(Comparable id, CompoundMetaObject container) {
    super(id, container);
  }

  /**
   * Create an empty, modifyable {@link java.util.List}.
   */
  protected Collection createElementCollection() throws Exception {
    return new ArrayList();
  }
}